package com.metroinfo.infrastructure.keys;

public class LineInfoDataKey implements Comparable<Integer> {

	Integer lineID;

	public Integer getLineID() {
		return lineID;
	}

	public void setLineID(Integer lineID) {
		this.lineID = lineID;
	}

	public LineInfoDataKey(Integer lineID) {
		this.lineID = lineID;
	}

	@Override
	public int compareTo(Integer arg0) {
		
		return lineID.compareTo(arg0);
	}
	
	@Override
	public int hashCode()
	{
		return lineID.hashCode();
	}
	
	@Override
	public boolean equals(Object o)
	{
		if(o==this) return true;
		if((o==null)||!(o instanceof LineInfoDataKey)) return false;
		LineInfoDataKey tmp = LineInfoDataKey.class.cast(o);
		return lineID.equals(tmp.lineID);
	}

}
